package org.upt.dcda.presentation;

import java.util.List;

import javax.ejb.EJB;
import javax.naming.InitialContext;

import org.upt.dcda.TagManager;
import org.upt.dcda.TagManagerBeanRemote;
import org.upt.dcda.db.TagEntity;

public class TagInformation
{
	@EJB
	private TagManagerBeanRemote	tagManagerBean;

	public List<TagEntity> getAllTags() throws Exception
	{
		List<TagEntity> tags = null;
		InitialContext initContext = new InitialContext();
		this.tagManagerBean = (TagManagerBeanRemote) initContext
				.lookup(TagManager.TAG_BEAN_NAME);

		tags = this.tagManagerBean.getAllTags();

		return tags;
	}
}
